home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / diag / memsz153.zip / SUPPORT.H < prev   
Text File  |  1992-12-16  |  2KB  |  90 lines

  1. /****************************************************************** SUPPORT.H
  2.  *                                                                          *
  3.  *                Presentation Manager Support Functions                    *
  4.  *                                                                          *
  5.  ****************************************************************************/
  6.  
  7. #ifndef SUPPORT_H
  8. #define SUPPORT_H
  9.  
  10. #define TRUE  1
  11. #define FALSE 0
  12.  
  13. #define NOT !
  14. #define OR  ||
  15. #define AND &&
  16.  
  17. typedef MRESULT (APIENTRY METHODFUNCTION) ( HWND, USHORT, MPARAM, MPARAM ) ;
  18. typedef METHODFUNCTION FAR *PMETHODFUNCTION ;
  19.  
  20. typedef struct Method
  21. {
  22.   USHORT Action ;
  23.   PMETHODFUNCTION pFunction ;
  24. }
  25. METHOD, *PMETHOD ;
  26.  
  27. extern MRESULT DispatchMessage
  28. (
  29.   HWND    hwnd,
  30.   USHORT  msg,
  31.   MPARAM  mp1,
  32.   MPARAM  mp2,
  33.   PMETHOD MethodTable,
  34.   USHORT  MethodCount,
  35.   PFNWP   DefaultProcessor
  36. ) ;
  37.  
  38. extern VOID AddSysMenuItem ( HWND hwndFrame, MENUITEM *Item, PSZ Text ) ;
  39.  
  40. extern VOID AddSysSubMenuItem
  41. (
  42.   HWND hwndFrame,
  43.   USHORT SubMenuID,
  44.   MENUITEM *Item,
  45.   PSZ Text
  46. ) ;
  47.  
  48. extern VOID AddMenuItem
  49. (
  50.   HWND hwndFrame,
  51.   USHORT MenuID,
  52.   MENUITEM *Item,
  53.   PSZ Text
  54. ) ;
  55.  
  56. extern VOID AddSubMenuItem
  57. (
  58.   HWND hwndFrame,
  59.   USHORT MenuID,
  60.   USHORT SubMenuID,
  61.   MENUITEM *Item,
  62.   PSZ Text
  63. ) ;
  64.  
  65. extern VOID EnableMenuItem
  66. (
  67.   HWND hwndFrame,
  68.   USHORT MenuID,
  69.   USHORT Item,
  70.   BOOL Enable
  71. ) ;
  72.  
  73. extern VOID CheckMenuItem
  74. (
  75.   HWND hwndFrame,
  76.   USHORT MenuID,
  77.   USHORT Item,
  78.   BOOL Check
  79. ) ;
  80.  
  81. extern VOID Add2TaskList ( HWND hwnd, PSZ Name ) ;
  82.  
  83. extern METHODFUNCTION Exit ;
  84. extern METHODFUNCTION HelpForHelp ;
  85. extern METHODFUNCTION ExtendedHelp ;
  86. extern METHODFUNCTION KeysHelp ;
  87. extern METHODFUNCTION HelpIndex ;
  88.  
  89. #endif
  90.